#include <iostream>
#include "epoll_server.hpp"


void Usage(char *process_name)
{
    std::cout << "Usage: %s port" << process_name << std::endl;
}

int main(int argc, char *argv[])
{   
    if(argc != 2)
    {
        Usage(argv[0]);
        exit(1);
    }

    EpollServer srv;
    int port = atoi(argv[1]);
    srv.InitServer(port);
    srv.Loop();

    return 0;
}